package com.service;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class ServiceB {

    @Value("${server.port}")
    private  String port;

    public int add(int x, int y)
    {
        System.out.println("这是服务器:"+port);
        return x+y;
    }
}
